<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Corporate_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-corporate_name" class="form-control" name="row[corporate_name]" type="text"
                   value="{$row.corporate_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Abbr')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-abbr" class="form-control" name="row[abbr]" type="text" value="{$row.abbr|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Unified_social_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-unified_social_code" class="form-control" name="row[unified_social_code]" type="text"
                   value="{$row.unified_social_code|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contact_info')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact_info" class="form-control" name="row[contact_info]" type="text"
                   value="{$row.contact_info|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Legal_person_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-legal_person_name" class="form-control" name="row[legal_person_name]" type="text"
                   value="{$row.legal_person_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Registered_address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-registered_address" class="form-control" name="row[registered_address]" type="text"
                   value="{$row.registered_address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Registered_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-registered_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss"
                   data-use-current="true" name="row[registered_time]" type="text"
                   value="{:$row.registered_time?datetime($row.registered_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Registered_capital')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-registered_capital" class="form-control" name="row[registered_capital]" type="text"
                   value="{$row.registered_capital|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Certificate_photos')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-certificate_photos" class="form-control" size="50" name="row[certificate_photos]"
                       type="textarea"
                       value="{$row.certificate_photos|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-certificate_photos" class="btn btn-danger faupload"
                                  data-input-id="c-certificate_photos"
                                  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                                  data-multiple="false" data-preview-id="p-certificate_photos"><i
                            class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-certificate_photos" class="btn btn-primary fachoose"
                                  data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i
                            class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-certificate_photos"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-certificate_photos"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Welfare')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-welfare" class="form-control" name="row[welfare]" type="text"
                   value="{$row.welfare|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Company_profile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-company_profile" class="form-control " rows="5" name="row[company_profile]" cols="50">{$row.company_profile|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Labels')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-labels" class="form-control" name="row[labels]" type="text" value="{$row.labels|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" class="form-control" name="row[address]" type="text"
                   value="{$row.address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Latitude_longitude')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-latitude_longitude" class="form-control" name="row[latitude_longitude]" type="text"
                   value="{$row.latitude_longitude|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Certificate_photos')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-photos" class="form-control" size="50" name="row[photos]" type="textarea"
                       value="{$row.photos|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-photos" class="btn btn-danger faupload"
                                  data-input-id="c-photos"
                                  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                                  data-multiple="false" data-preview-id="p-photos"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-photos" class="btn btn-primary fachoose"
                                  data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i
                            class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-photos"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-photos"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Certification_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[certification_status]', ['0'=> '未认证', '2'=> '已认证'],$row.certification_status)}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
